﻿import React from 'react';
import {NavigationContainer} from '@react-navigation/native';
import TabNavigation from './navigation/TabNavigation';
//{[{
import {ThemeProvider, useTheme} from './context/ThemeContext';
//}]}
function App(): JSX.Element {
  //{[{
  const {theme} = useTheme();
  //}]}
  return (
    //{--{
    <NavigationContainer>
      <TabNavigation />
    </NavigationContainer>
    //}--}
    //{[{
    <ThemeProvider>
      <NavigationContainer theme={theme}>
        <TabNavigation />
      </NavigationContainer>
    </ThemeProvider>
    //}]}
  );
}

export default App;
